<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north'" class="center" style="">
        <div class="webmap">
            <p class="webmaptip">当前位置:</p>
            <a href="javascript:;" class="easyui-link" data-options="plain:true">系统管理</a>
            <p class="webmaptip">></p>
            <a href="javascript:;" class="easyui-link" data-options="plain:true">数据字典管理</a>
        </div>
        <div class="querybycon">
            <form id="query">
                <div class="queryinfo">
                    <div> 字典名称<input type="text" name="name"></div>
                    <div> 字典编码<input type="text" name="code"></div>
                </div>
                <div class="querybtn">
                    <a id="querybtn" href="javascript:;" class="easyui-linkbutton"
                       data-options="iconCls:'fa fa-search'">查询</a>
                    <a id="add" href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'fa fa-plus'">添加</a>
                    <a id="edit" href="javascript:;" class="easyui-linkbutton"
                       data-options="iconCls:'fa fa-pencil'">编辑</a>
                    <a id="del" href="javascript:;" class="easyui-linkbutton"
                       data-options="iconCls:'fa fa-remove '">删除</a>
                </div>
                <div style="visibility: hidden;">aa</div>

            </form>
        </div>
        <div class="separator"></div>
    </div>
    <div data-options="region:'center'">
        <table id="list"></table>
    </div>
</div>

<script type="text/javascript">
    var addUrl = "page/dictionary/dictionaryadd.html";
    var editUrl = "page/dictionary/dictionaryedit.html";

    var delUrl = '/dictionary/del';
    var save = '/dictionary/save';
    var listUrl = "/dictionary/list";
    var edit = "/dictionary/edit";

    var columns = [[{
        field: 'id',
        checkbox: true
    }, {
        field: 'name',
        title: '名称',
    }, {
        field: 'code',
        title: '编码',
    }, {
        field: 'orderBy',
        title: '排序',
    }, {
        field: 'parent',
        title: '父分类',
        formatter: function (value, row, index) {
            if (value != null) {
                return value.name;
            }
        }
    }]];
    list.init({url: listUrl, columns: columns});
</script>
